package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.FlowFormEquipmentOfflineCloudDeviceDetail;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.equipment.domainDto.FlowFormEquipmentOfflineCloudDeviceDetailDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: xuchang
 * @Desc: domin到dto转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormEquipmentOfflineCloudDeviceDetailMapper {

    FlowFormEquipmentOfflineCloudDeviceDetailMapper INSTANCE = Mappers.getMapper(FlowFormEquipmentOfflineCloudDeviceDetailMapper.class);

    FlowFormEquipmentOfflineCloudDeviceDetailDto domain2dto(FlowFormEquipmentOfflineCloudDeviceDetail domain);


    List<FlowFormEquipmentOfflineCloudDeviceDetailDto> domain2dto(List<FlowFormEquipmentOfflineCloudDeviceDetail> domain);

    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    FlowFormEquipmentOfflineCloudDeviceDetail dto2domain(FlowFormEquipmentOfflineCloudDeviceDetailDto dto);

    List<FlowFormEquipmentOfflineCloudDeviceDetail> dto2domain(List<FlowFormEquipmentOfflineCloudDeviceDetailDto> dto);
}
